package com.example.servicea.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.example.servicea.entity.RoleEntity;

import java.util.List;

/**
 * @Author hutu.
 * @Date: 2017/10/26 10:19
 */
public interface RoleService {
    String insert(RoleEntity role);
    List<RoleEntity> selectList(RoleEntity role);

    Page selectPage(RoleEntity role, String page, String limit);

    int selectCount(RoleEntity role);

	RoleEntity selectOne(RoleEntity role);

	RoleEntity selectById(String id);

    String updateById(RoleEntity role);

    boolean deleteById(String id);

    boolean deleteBatchIds(String ids);

    boolean insertPermissions(String permissionIds, String roleId);

}